package com.example.mywike.user.entity;

import com.example.mywike.config.versionConfig.VersionEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Set;

/**
 * @Author xiyanqiulvgui
 * @Date
 * @Description TODO
 * @Version 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserEntity extends VersionEntity {
    /** user id*/
    private Long userId ;
    /** 用户昵称 */
    private String nickName;
    /** 用户头像 */
    private Long avatarImgId;
    /** 是否启用 */
    private Short enabled;
    /** 用户角色 */
    private Set<RoleEntity> roles;
    /** 用户权限 */
    private Set<MenuEntity> menus;

}
